define(function(require,exports,module){
	
	require('common');	
	var tpl = require('../../tpl/member/borrow_amountApply.tpl');//载入tpl模板
    
    var curId = $("#amountApplyRecordDiv");
    var pagerid = "kkpagerAmountRecordApply";
	//初始化显示表格、搜索
	require.async(['./showTable','./search'],function(showTable,search){
		showTable.ajaxUrl('/member/borrow/creditApplyList.html?status='+99,tpl,curId,pagerid);
		search.search('/member/borrow/creditApplyList.html?',tpl,curId,pagerid);
	});
	
	// 信用申请tab选项卡
	$(".amountApply").tabChange({
		isClick:true,
		isHover:false,
		childLi:".title_list li",//tab选项卡
		childContent:".list_div",//tab内容
		hoverClassName:"hover",//选中当前选项卡的样式
		callBack:false	
	});
	
	$("input[name='amount']").keyup(function(){
		Inputlimit(this,1);
	});
	
});